<template>
  <tab-bar>
    <tab-bar-item path="/home">
      <template v-slot:tabbarItemImg>
        <img src="~@/assets/img/tabber/home/home.svg" alt="加载中..">
      </template>
      <template v-slot:tabbarItemImgActive>
        <img src="~@/assets/img/tabber/home/home_active.svg" alt="加载中..">
      </template>
      <template v-slot:tabbarItemText>
        首页
      </template>
    </tab-bar-item>
    <tab-bar-item path="/catgory">
      <template v-slot:tabbarItemImg>
        <!-- 在别名前加~可在模板中使用别名，框架默认别名@=src路径 -->
        <img src="~@/assets/img/tabber/catgiory/catgiory.svg" alt="加载中..">
      </template>
      <template v-slot:tabbarItemImgActive>
        <img src="~@/assets/img/tabber/catgiory/catgiory_active.svg" alt="加载中..">
      </template>
      <template v-slot:tabbarItemText>
        分类
      </template>
    </tab-bar-item>
    <tab-bar-item path="/cart">
      <template v-slot:tabbarItemImg>
        <img src="~@/assets/img/tabber/cart/cart.svg" alt="加载中..">
      </template>
      <template v-slot:tabbarItemImgActive>
        <img src="~@/assets/img/tabber/cart/cart_active.svg" alt="加载中..">
      </template>
      <template v-slot:tabbarItemText>
        购物车
      </template>
    </tab-bar-item>
    <tab-bar-item path="/profile">
      <template v-slot:tabbarItemImg>
        <img src="~@/assets/img/tabber/user/user.svg" alt="加载中..">
      </template>
      <template v-slot:tabbarItemImgActive>
        <img src="~@/assets/img/tabber/user/user_active.svg" alt="加载中..">
      </template>
      <template v-slot:tabbarItemText>
        用户
      </template>
    </tab-bar-item>
  </tab-bar>
</template>

<script>
// 为保持简洁将文件抽取到这里
import TabBar from '@/components/common/tabbar/tabbar.vue';
import TabBarItem from '@/components/common/tabbar/TabBarItem.vue'
export default {
  components: {
    TabBar,
    TabBarItem
  },
  props: {},
  data() {
    return {
    };
  },
  watch: {},
  computed: {},
  methods: {},
  created() {},
  mounted() {}
};
</script>
<style scoped>
</style>